package com.aaa.sso.service;

import com.aaa.common.bo.Member;
import com.aaa.common.util.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("memberService")
public interface RemoteMemberService {

    /**
     * 根据用户名获取用户信息
     * @param userName
     * @return
     */
    @GetMapping("/member/getUserByUsername")
    Member getUserByUsername(@RequestParam("userName") String userName);

}
